#ifndef QRUNTIMEWIDGET_H
#define QRUNTIMEWIDGET_H

#include "qsettingdialog.h"

#include "../../libs/core/qabstractpagewidget.h"

#include <QDateTime>

class QRuntimeTreeWidget;
class QMission;

class QRuntimeWidget: public QAbstractPageWidget
{
    Q_OBJECT
public:
    QRuntimeWidget(QWidget* parent=0);
    ~QRuntimeWidget();
protected:
    void    set_action_enabled(bool enabled);
    void    make_save_path();
protected slots:
    void new_machine();
    void release_machine();
    void    select_param();
    void    setting();

    void    start();
    void    stop();

    void    timer();
protected:
    QRuntimeTreeWidget  *m_tree_widget;
    QList<QAction*>     m_action_list;
    QList<QMission*>    m_mission_list;
    bool                m_is_start;
    tagResult           m_result;
    QTimer              *m_timer;
    QDateTime           m_last_time;
    QString             m_last_path;
    QDateTime           m_last_create_time;
};

#endif // QRUNTIMEWIDGET_H
